Reuse database connection if it exists