Gravity and quantum mechanics