finished basic user model and updated database from sqlite to pg