Miner init
added function to intialise databasee