Fixed issue with timestamp db insertion
Improved public, accepted and heart handling