Fix issue #29. User search query is now (almost) DBMS independant.