Why did you define the function as static?
This is not wrong and there is no convention that would prevent you from invoking a static method from a non-static one. By definition, a non-static method belongs to an instance of a class, while a static method belongs to the class itself.
Having a static method simply means that you do not need an instance of the class to connect to the database.
, , , , . , ? ?