Added version variables and some database communication.