Threading and Database

Threads the listening socket
Connects to database to check login