New db, introduced search, bugs fixed