write incoming messages picked up off the queue to a postgres database
refactor into separate projects
add relay handlers