first models

implement database model