Secure database modification