Make sqlite error in sql_exec slightly more informative by using
standard ERROR_SQLITE macro.
Ude 0644 mode for fetched packages.

It is generally no reason to set so strict permissions on fetched
files, set thus ordinary 0644 permissions by default (that can be
overrided by umask anyway).

Discussed with:	bapt