added comments for database.pl