add factories and rooms table with funtionality