Dialplan - Asterisk real time

Hello, I want to use a mysql database for the dialplan. I was reading that you have to put a switch inside the context in extensions.conf, so I have to create the context. How can i do to create my dialplan completely (including the context) from a mysql database without creating the static part of the dialplan in mysql???(static in extensions.conf and dinamic in a mysql database)