added rudimentary active record methods