setup db in server script