add sql code for application configuration