Read competition from DB

Get the competition which is satisfied with:
the competition which is ready only.
the earliest competition among not opended competitions.