merge whatever
added logging in JSON format to database