Functional DB creation script.