Check the database for account credentials