created a database and checked if it connected or if it dident