Edit database myself


I want to make database request (for my personnal data), but I don’t know how I can access to database connection or method to manage it.
And this is not any documentation about it.
How to do ?

And, I have another question :
How to use “created_on”, “created_by” … values and not create my own column which does the same things ?

Best regards.