fixed wrong search type in database section