Setup of database