Stored current gain and gamma in database

Requires updated database dump