talking with the database