Fix #31 - fix postgresql empty database check