Fix some db tables to include timestamps. And get basic approval flow working.