if you are not using a different database than your geeklog database (in your staticpage script), then you shouldn't need to reconnect to that database. when the script runs, it will run inside of an already open connection, which closes when the script ends, ie, at the end of the entire page. Therefore, there is no need to include your db details.
hope that helps.