Cloned basic Active Record funtionality