Adding empty array checks
Fixing EOL characters for bash_aliases; Removing db without username or database name