Remove code redundancy (Reuse DatabaseCredentials)