Use json for storage making it more flexible
Add headers parameter for checking headers and creating the databse if not found