added database module, unicode methods on models