Changed database class to accept database name.
startconnection will take database name as an argument.