add @db_session decortator for read_only operation
 add @db_session for db operation