Search improvements, can now search on any database column in media

Improved the search so that it can be used better for MPD and future functionality.  You can search on any database column for any media type, and it will validate the column to avoid things like SQL injection, since you apparently can't parameterize columns.