Configuring gii and database