Close db after getUser