Added db_prepare

db_prepare simplify the regular query string writing.