Sometimes we would do some simple service for mobile application.So we need api and data.Now for most device LAMP is popular and build-in in default.So I pack up a class for database connection.Check it out.