added script to change permissions of db on startup.