Fixed image issues again

Fixed enabled code image issues while selecting from active games. Also
removed repetitive code and made selecting from the database a little
more simple