Moved auto execution of database version to 509