api route
use postgres