add db Model class and some test code