[BUG BASH] Search in database