Create database outside of transaction block