Changes to inputing new values into database