Revert "Revert "Finished creating database code first""

This reverts commit bf531e7d19d9b6c5812afebd22f6d8d43343653c.