Added selects for access to database.