database create script v.2.0