Fixed db creation controller error