added function for checking the draw in a database - onlny for lat draw in Lotto game at the moment