Try to optimize db schema.