little shell script for db