add the embedded database and optimize the index page