Created handler for jsondb