More tests and functionality. Runs first migration successfully against postgresql.