Sets defaults for db connection.
Adds primary key and unique constraint to users table.