db: minor db refactoring
db, helpers: move date operations to helpers
style: change log for style