Added lean code to the CreateDatabase task.