Removed superfluous database connection