Fixed file handling. Added stop on error.
Added database to package