search now works with the new database design