initial code, start of database setup