changed db schema, updated logger.