Changed search function and database selection

Searching for projects now only uses wildcard at the end of the search
word, not at start and end. Customer names, ids and project names are
not stored in arrays after startup, rather retrieved from the database
when searching.