consolidate db connections in admin api