added database and globals modules