added search functions to database files, removed reds from nodebb moved it to redis