Made sure createTable was used if database is empty.

Fixed the tests by adding some curly braces and added semicov as a devDependency