some little changes and an idea of the db-structure
added some basic db-operations