You can Manage Asterisk Conf file via Interface in PHP, there is not need of DB connection