error handling for database pusher