cleanup DB layer because we throw exceptions now on DB errors, make DB schema compatible with MySQL