chmod db scripts