Add sql table scripts and modify postgres data store