SQL schema: Function symboldb.add_file should take NUMERIC mtime argument

Adjust database loading code accordingly.
database::lock(int, int): Fail early in case of SQL error
database::add_elf_image(): Convert interpreter name to UTF-8

It can be garbled if the program headers are invalid, e.g. in
separate debuginfo.