Extend type model logic
Add type controller
Fix development database connection. Map to type controller