optimize db option