Database diagram and script.