Added automaticl innit of DB