Added extents controller and database functions needed to save extents parameters