BROKEN CODE: started db-fetching code; actually read the credentials;