kamailio-3.x: fix kamdbctl and database modules to work properly

Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
kamailio-4.x: update to version 4.2.1

Signed-off-by: Jiri Slachta <slachta@cesnet.cz>