Added some database functionality.
Design and database work.