Updated db_copy to use Seach Repalce DB. Extraced db_clone and db_create functions. Fixed tag-fetching bug.