DataBase on PAGE

Hi,
I’m new using frappe erpnext, and i need some help, I created a new page but I need to feed from my database, taking into account that I am handling .py, .html and .js, how could I do it.