preliminary of database set up