Worked on search_db() func