created ConnectionFactory and now is working/ connection to database working