Added an error reporting function to the database handler

Simply set report_errors to 1 and it'll spit out the regular
database errors to stderr. This makes callback functions like
in arp.c useless.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>