Write RDB scheme. Close #49