Remove sqlite DB and log
Replace sqlite3 with PG & add flash logic