added sessions and users and migrated to postgres