Enhancing some Active records issues