flashcard query from database working

A flashcard will be select from the database by order of rank (interval)
and count (number of times seen)

things to do:
-- turn stop/start buttons unclickable when the other is active.
-- create insert queries to database.
-- add minimum timer to the interruptions. (discuss)