Refactoring & abstracted dba credentials

Small edits to tests with hardcoded dba credentials.