Updating DatabaseDriver to generate ids automatically