Began model for interacting with database