Added code to setup database.