Handling error for database intialisation.
Added the dependecy on mysql lib.