Changed login, and half-done with database logic
Updated datatype logic