You can write the backend yourself using any language or if you just want to focus on doing Android and iOS apps then you can also use third party solutions like Firebase.
solved What code should I use to manage a database connected with an android/apple app? [closed]