Updated version with database support

Database storage of inquiry-objects added