Implementing a restfull api for our database