Creating a database console application