added api for db operations, updated data-feed client and server and added db files maindb is the main database to be used.
updated api : split it into controller and api server