Resize database to optimize performance