Changes for Database enhancement

Some changes in preparation for Postgresql/Mysql support
Additionally, a simplification on Mplayer detection ( I don't think is necessary to execute it )