Added basic database class and tested it.