Work on database shell script