To get from the database you need a server side script to return JSON (or XML but XML sucks )
When you edit a record in Ext JS you need to then call sync() on the store and that will send a request to your server side script which would do the updating in the database.