Updated library structure.
Moved source code for database to separate project.