rainfall recording to database