server side repo + db