added rdb, testing functionality