Finished Db test and db functions, added search need to finish search test