Fixed some db functions so logins actually work