Bug fixes with how workers handle multiple databases