Refactor database stuff

Refactor the database to have a Column, ColumnRule, and DataType. Add code
to create database file if it does not exist.