initial db sql/functions for lsp
change "t" field to "time" which is more explicit/clear