update sql tables for search and favorites

update sql tables for search and favorites