Using same decorators for database as dispersy