Added support for db check and waiting during cluster creation.
See ticket: #41.