set up db and schemas