Updated server script to make database options configurable