socketio correctly emits from db callback now