Update database.go
better handling of DATE_SUBTRACT(NOW(), %d %s) with postgres
Co-authored-by: Ole Peder Brandtzæg <olepbr@gmail.com>