Ok, I fixed the problem with the code, there was something wrong with the select statement. But now I have another problem.
Therefore, Im overriding the clicked method on the Ok button on the form, and there Im calling the insert method from the table. But now the logic is happening on the room table not on rent room table :S