implemented more database calls for view game