I think this function and 'InitApplicationsTable' should be merged to a common InitDataBase function