Added battery period list and added battery function to db.hpp.