Finalized the migrations
Updated the codebase to reflect the db restructuring