Prelim SQL stuff

Hopefully will create db correctly