db and web api