Moving to postgres from mysql - fixes #81