Moved some functions from build_master_table to database_interface so the other modules can import them.
Added a counter and increased the TELNET timeout to 30s.
Added new tables and better desing patterns.
Just moved some whitespace around.