altering now function for different databases
redo now function
fixes last
fixes getNow()
sqlite compatibility