Fixed database path issue

When agregator.pl command was called from anywhere except from original directory, the database didn't update. Fixed.