I just love XDK, in my young company XDK is used for the flagship products. For the backend (communicating with mysql) I prefer PHP, I can write in Python too, so it's up to you which you can learn faster. If you budget can be about $250 I can walk you through the code and teach you how to write such a program yourself from scratch and answer your questions.