added a sleep check after the database container is started