Fixed search it finally works with real db, added additional filtering for results, changed style, removed unnecasary code