Add proper url encoding for post data
implement getting from the databse