updated model and create to work with the new proxied db connection