add url parse and db query parse method