Got database stuff working; going with a native postgresql client. Not pretty, but functional and fast