The models init functions should always be executed at startup
When starting the gateway, if a table already exists, its init
function will not be called. This can cause some issues in certain cases if the table was not previously created by the same gateway instance. This should be changed so that the init
function is always called at startup, even if the table already exists (the checks will have to be deferred to the function itself).