select json field from database