seperated database functions from login details in order to add it safely to the repo