Artist search avatar display fix, DB problem fix

Made rawQuery use the where() function too.