Setup of database and tables