split db connection and queries
split db connection and queries