Added in DB read and write functions.
Forgot some of the fixes in the previous commit.
More consistent spacing of braces and parenthesis.
Replace ~= with !=
Added beginning of writing and defaults; added some type checking on ID.
Fixes based on testing.
Add nil support.
Fixes after testing; Dropped nil support since it doesn't work well with lua.
Merge pull request #6 from AdorableMallow/master

Database now has Read/Write functionality + Many minor changes / fixes.