Added a logging class to Veis to expose messages to external libraries. Also fixed the database connection error (one of them).