makes db and tables