more database revamps, smarter parsing, better error logging