Edit and Adjust script for database