Add tests for mysql and postgres. Closes #4, closes #3.