Added debugging messages to DatabaseInterface