added commentes (optional)
added checkIfDatabase is running
added test