switched to internal database security