implemented database security and versioning