Simplification and testing

getByAttribute had the attribute "Artist" hardcoded, so getAllGenres and
getAllAlbums returned wrongful results.
Added check to getByAttribute to exclude empty fields (It breaks SAPI)