adding decorators for database related views