Best Practices for High Quality Code and Optimal Database Performance