OK seem to have database model loading working, remember not to init it each time maybe