now uses pg for production and sqlite for development
fixed migration