database creation method

Unfinished: sql_delarative converted into a importable function