fixed DB create issues