Fix bugs in current_user
Switching db to postgres