messaging + db