Ionic online cab reservation app

Hello. I’ve an issue with my project. I will design an app like uber. The major issue now is how to create a database for the drivers so that, once the user request for a cab. The system just allocate the available driver to the user