Generating virtual machines for the database and data layer