add gitignore to ignore built files and logs.  Modified to only use one db connection to eliminate too many connections error