Refactor to DatabaseServiceActor to better throttle database connections