adding some basic orm stuff