Fixed DB problems

created new file "connection.php" with db login and replaced old db
calls