Server side code for Twoos App