the system databases are always database ID (dbid) 1 -4, so use where clause
where database_id > 4
these will always be user databases.
If you have reporting services this will include the SSRS databases, chances are these are dbid 5 and 6.
---------------------------------------------------------------------