Rebuilt authentication layer
Updated the database script files