Active record database hw