Working resource factory, creating db and populating defaults routes. Custom route definition is working, but custom inheritance isnt good so useless at the moment.