Added DBManager and saved sleepRecord in DB