DB should have a value when connected
Clean up worker code

- Bad case of the let-itis
- Use http-kit for better HTTP requests