added add and get methods for DB