Model changes

Added model type assignment and as_array and as_json exporter
Added basic user model for testing purposes
removed as_array from DB Model