Fix waiting for db to become available
Merge https://github.com/vmalloc/weber-backend into embercli