Di you use try catch? If yes, get the error log in your file and check it out
Well, i use mysql database with this and it works. What type of database are you using and why are you using [] to save data or you wanted to fetch it with JSON?
You've checked a table and no data in them?
With [ right?