bugfixes
Database interface added