added a lot of database stuff. added create and insert statements. added basic insert for testing and it seems to be working