added dbv module for database versioning
updated dbv
fix of foreign keys in db, db revision 2