Started implementing DB interactions