I am not that much good in this particular mater, there is an application called “Niando” mainly brought up for gets rid of database errors. So I would suggest you to try this specific application. Hope it will give you the ideal solution. Good luck.
XAMPP is not database, but rather setup of Apache server with MySQL database and PHP or Pearl enabled.
So you need to get yuor facts stright:
1. either you want to use of device database and comunicate with http request/responce
2. or you want to do something as I suggested above PersistanceStorage or SQLite
Please make up your mind as these are two different things
That mean you want to have remote database and provide some sort of web service that can be build with either Java(servlet), PHP or even .NET. Check your school work library for Begining J2ME: From Novice to Professional and have look at chapter 10 (link is to books.google.com where sections of book is vieawable) that explains HTTP communication