Returning JSON result
Added database for checks.