Restructure migration code to allow easy changing of database
Add last_seen column to users
Remove table prefixes