Wrote a bit on database