added server api route; changed db file path