add BaseDatabaseObject

add BaseDatabaseObject and let Message extend it