Dear Nagendrappa,
IF you meant that you need to do direct queries on a database you can do that using the Database connector module from the Marketplace.
Kindly refer to the links below.
Documentation
Marketplace Module
Thanks,
Sufian.