fixed hardcoded database name in postgres queries