rewrite code about db

add custom active record.
add like_group() to generate like in group eg. (field1 LIKE keyword OR
field2 LIKE keyword)