a crude version of rails active record lite