PHP to configurating connection to database and creating connection to database