initial work on the database