optimize database install