1. save reservation data to rethinkdb
compile to js