Added formatting and remote database functionality