[Fix] wrong search in database