Added create tables

Untested, I may have used postgres sql functions that may not work with
derby. Will test asap